using System;
using Evaluant.Uss.ObjectContext.Descriptors;

namespace NUnit.DynamicProxy
{

	[Serializable]
	public class Address
	{
		public Address()
		{
		}

		public Address(string city)
		{
			_City = city;
		}

		protected string _City;


		[PersistentProperty ("_City")]
		public string City
		{
			get { return _City; }
			set { _City = value; }
		}

		protected string m_Id;
		
		[PersistentId("m_Id")]
		public string Id
		{
			get { return m_Id; }
			set { m_Id = value; }
		}

		public bool BaseCountryGetterCalled = false;
		protected Country _Country;

		[PersistentProperty ("_Country")]
		public virtual Country Country
		{
			get 
			{
				BaseCountryGetterCalled = true;
				return _Country; 
			}
			set { _Country = value; }
		}


	}
}
